package core.mountedWeapons;

import core.Player;
import core.weapons.Bullet;

public class GenericPistol extends MountedWeapon {

	int damage;
	
	public GenericPistol(int damage, int fireCooldown){
		this.damage = damage;
		usesAmmo = false;
		cooldown = fireCooldown;
		range = 500000;
	}
	
	@Override
	public void fire(int startX, int startY, double dir, Player p){
		p.main.attacks.add(new Bullet(startX, startY, p, dir, damage, 3000, 0.02, range));
		cooldownTimer=cooldown;
		ammo--;
	}
}
